^1640740802651
@
sname
WebControlExample
slabel
WebControlExample
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sid
WebControlExample
  @/@SimpleControl
  sname
  SimpleControl
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sid
  SimpleControl
    @/@SimpleControl/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sid
    actions
      @/@SimpleControl/@actions/@httpDo
      sname
      httpDo
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
//执行框架的业务逻辑
def resultObj = self.doAction("doAction", actionContext);
def result = "success";
if(result instanceof String){
    result = resultObj;
}
 
//通过业务逻辑的返回值寻找要输出的界面
def resultThing = self.getThing("result@" + result);
if(resultThing != null){
    response.setContentType(resultThing.contentType);
    def viewThing = null;
    for(child in self.getChilds("view")){
        if(child.name == resultThing.view){
            viewThing = child;
        }
    }
    if(viewThing != null){
        //下发页面
        response.getWriter().println(viewThing.content);
        return;
    }
}

response.getWriter().println("no content");
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sid
      httpDo
    @/@SimpleControl/@actions1
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.lang.MetaDescriptor3/@actions
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sid
    actions1
    @/@SimpleControl/@view
    sname
    view
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sid
    view
      @/@SimpleControl/@view/@name
      sname
      name
      LvalidateOnBlur
      false
      LallowDecimals
      false
      LallowNegative
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sid
      name
      @/@SimpleControl/@view/@content
      sname
      content
      sinputtype
      textarea
      scolspan
      2
      LvalidateOnBlur
      false
      LallowDecimals
      false
      LallowNegative
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sid
      content
    @/@SimpleControl/@result
    sname
    result
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sid
    result
      @/@SimpleControl/@result/@name
      sname
      name
      LvalidateOnBlur
      false
      LallowDecimals
      false
      LallowNegative
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sid
      name
      @/@SimpleControl/@result/@contentType
      sname
      contentType
      sdefault
      text/html;charset=utf-8
      LvalidateOnBlur
      false
      LallowDecimals
      false
      LallowNegative
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sid
      contentType
      @/@SimpleControl/@result/@view
      sname
      view
      LvalidateOnBlur
      false
      LallowDecimals
      false
      LallowNegative
      false
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sid
      view
    @/@SimpleControl/@name
    sname
    name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@SimpleControl/@sswtMenus
    sname
    sswtMenus
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus
    sextends
    xworker.web.ControlSet/@swtMenus1
    sid
    sswtMenus
